package com.itic.appbase.framework.type;

public enum WithDrawalSendType {
	NoSend("0","未发放"),SendIng("1","发放中"),AlreadySend("2","已发放"),SendFail("3","发放失败");
	
	private String type;
	private String name;
	WithDrawalSendType(String type, String name) {
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取发送状态
	 * @param type
	 * @return
	 */
	public static WithDrawalSendType getWithDrawalSendType(String type) {
		
		WithDrawalSendType WithDrawalSendType = null;
		switch (type) {
		case "0":
			WithDrawalSendType = WithDrawalSendType.NoSend;
			break;
		case "1":
			WithDrawalSendType = WithDrawalSendType.SendIng;
			break;
		case "2":
			WithDrawalSendType = WithDrawalSendType.AlreadySend;
			break;
		case "3":
			WithDrawalSendType = WithDrawalSendType.SendFail;
			break;
		}
		return WithDrawalSendType;
	}
	
	
}
